package com.pai4j.netty.server.config.properties;

import com.pai4j.netty.server.common.PropertyLoader;
import lombok.Getter;
import org.springframework.util.Assert;

@Getter
public class NettyServerProperties {

    public static int PORT;

    public static void init() {
        Object port = PropertyLoader.getProperty("netty.server.port");
        Assert.notNull(port, "netty.server.port is not config!");
        PORT = Integer.parseInt(port.toString());
    }
}
